package cn.vc.wallet.util;

import cn.dev33.satoken.exception.NotLoginException;
import cn.dev33.satoken.stp.StpUtil;
import cn.vc.auth.entity.po.VUser;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;

/**
 * @Description:
 * @Author: mo
 * @Date: 2024-03-23 11:36
 **/
@Slf4j
public class SecurityUtil {
    public static VUser getUser() throws NotLoginException {
        VUser vUser = new VUser();
        vUser.setId(StpUtil.getLoginIdAsLong());
        return vUser;
    }

}
